package service;

import entity.FormSubmitRequest;

public class demo {
    public static void main(String[] args) {
        FormSubmitHandlerFactory formSubmitHandlerFactory = new FormSubmitHandlerFactory();
        formSubmitHandlerFactory.init();
        FormSubmitRequest formSubmitRequest = new FormSubmitRequest();
        formSubmitRequest.setUserId(11L);
        formSubmitRequest.setSubmitType("model");
        formSubmitHandlerFactory.getHandler(formSubmitRequest.getSubmitType()).handleSubmit(formSubmitRequest);
    }
}
